/* MoneyWorth.h
 * Author: mtreece 
 * Date Started: 02/09/2010
 * Purpose:
 *  Header file for MoneyWorth.cpp
 *
 * TODO:
 *  Amazing realization as to why
 *  GTK programming makes up their
 *  own types... why have a GINT (or 
 *  something)?  -- because if one must
 *  turn an int into a long, for example,
 *  to work on a particular machine its
 *  being exported to!
 *  Consider making TINT (or something)?
 */

#ifndef MONEYWORTH_H
#define MONEYWORTH_H

class MoneyWorth{
	private:
		/* basic datatype - integer
		 * to represent a monetary
		 * value.
		 * TODO: allow neg values?
		 */
		unsigned int worth;

		/* Represents if this is a
		 * jacpot-ticket.
		 * (i.e. this ticket matches
		 *  the winning ticket)
		 */
		int isJackpot;

	public:
		/* return the value
		 * of this MoneyWorth.
		 */
		unsigned int value(void);

		/* returns 1 if this is
		 * a jackpot winner;
		 * else, 0.
		 */
		int jackpot();

		/* set the value of this
		 * money worth...
		 * FIXME: necessary?
		 */
		void setValue(int);

		/* instantiate a new
		 * money-worth with the
		 * passed-in parameter.
		 *
		 * param1: value of this
		 *         MoneyWorth obj.
		 * param2: is this a jackpot?
		 *         0 = no;
		 *         1 = yes;
		 */
		MoneyWorth(int, int);
};

#endif
